package com.hxy.travel.dao;

import com.hxy.travel.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    List<Order> findByOrder(Order order);

    void addOrder(Order order);

    Map findByIdOrderInfo(@Param("id") Integer id);

    Integer getTodayOrderNumber(String today);

    Integer getTodayVisitsNumber(String today);

    Integer getThisWeekOrderNumber(@Param("weekMonday") String weekMonday,@Param("weekSunday") String weekSunday);

    Integer getThisWeekVisitsNumber(@Param("weekMonday") String weekMonday,@Param("weekSunday") String weekSunday);

    Integer getThisMonthOrderNumber(@Param("monthFirst") String monthFirst,@Param("monthLast") String monthLast);

    Integer getThisMonthVisitsNumber(@Param("monthFirst") String monthFirst,@Param("monthLast") String monthLast);
}
